const send = require('@shuwang/send')
const http = require('http')
http.createServer(send('./public', {
    handleResponse(data, req, res, pathname) {
        res.setHeader('expires', new Date(Date.now() + 1000 * 5).toGMTString())
        send.handleResponse(data, req, res, pathname)
    }
})).listen(4000)